package com.wits.media;

import com.wits.av.MFormat;
import com.wits.av.MediaSink;

/**
 * Created by zhengboyuan on 2018-03-13.
 */

public interface MediaEncoder {


    boolean open(MFormat fmt);

    void close();

    boolean isOpen();

    boolean start();

    void stop();

    boolean isStarted();

    MFormat getFormat();

    void setSink(MediaSink sink);

}
